import { createSelector } from "@reduxjs/toolkit";

const counnterSlice = ({
    name: 'counter',
    initialState: {
        count: 0
    },
    reducers: {
        increment: (state) => {
            state.count++
        },
        decrement: (state) => {
            state.count--
        }
    }
})

const {increment, decrement} = counnterSlice.actions;

const counntReducer = counnterSlice.reducer;
export {increment, decrement}
export default counntReducer;